package designs.models.chainOfResponsibility.example.one;

public class Application {
	private Handler useInt,useLong,useBigInteger;
	public void createChain() {
		useInt = new UseInt();
		useLong = new UseLong();
		useBigInteger = new UseBigInteger();
		useInt.setNextHandler(useLong);
		useLong.setNextHandler(useBigInteger);
	}
	
	public void reponseClient(String number) {
		useInt.computerMultiply(number);
	}
	public static void main(String[] args) {
		Application application = new Application();
		application.createChain();
		application.reponseClient("32");
	}
}
